/**
 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.vijayan.profile.model.impl;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.util.DateUtil;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.impl.BaseModelImpl;
import com.liferay.portal.service.ServiceContext;

import com.liferay.portlet.expando.model.ExpandoBridge;
import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;

import com.vijayan.profile.model.Profile;
import com.vijayan.profile.model.ProfileModel;
import com.vijayan.profile.model.ProfileSoap;

import java.io.Serializable;

import java.lang.reflect.Proxy;

import java.sql.Types;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * The base model implementation for the Profile service. Represents a row in the &quot;kalyan_profile&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This implementation and its corresponding interface {@link com.vijayan.profile.model.ProfileModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link ProfileImpl}.
 * </p>
 *
 * <p>
 * Never modify or reference this class directly. All methods that expect a profile model instance should use the {@link com.vijayan.profile.model.Profile} interface instead.
 * </p>
 *
 * @author vijayan
 * @see ProfileImpl
 * @see com.vijayan.profile.model.Profile
 * @see com.vijayan.profile.model.ProfileModel
 * @generated
 */
public class ProfileModelImpl extends BaseModelImpl<Profile>
	implements ProfileModel {
	public static final String TABLE_NAME = "kalyan_profile";
	public static final Object[][] TABLE_COLUMNS = {
			{ "profileId", new Integer(Types.BIGINT) },
			{ "profileCode", new Integer(Types.VARCHAR) },
			{ "createdForMy", new Integer(Types.VARCHAR) },
			{ "profileName", new Integer(Types.VARCHAR) },
			{ "gender", new Integer(Types.BOOLEAN) },
			{ "birthDateWithTime", new Integer(Types.TIMESTAMP) },
			{ "rasi", new Integer(Types.VARCHAR) },
			{ "star", new Integer(Types.VARCHAR) },
			{ "dosam", new Integer(Types.VARCHAR) },
			{ "religion", new Integer(Types.VARCHAR) },
			{ "caste", new Integer(Types.VARCHAR) },
			{ "subcaste", new Integer(Types.VARCHAR) },
			{ "height", new Integer(Types.VARCHAR) },
			{ "weight", new Integer(Types.VARCHAR) },
			{ "complexion", new Integer(Types.VARCHAR) },
			{ "motherTongue", new Integer(Types.VARCHAR) },
			{ "languageKnown", new Integer(Types.VARCHAR) },
			{ "maritalStatus", new Integer(Types.VARCHAR) },
			{ "children", new Integer(Types.INTEGER) },
			{ "residingCountry", new Integer(Types.VARCHAR) },
			{ "residingState", new Integer(Types.VARCHAR) },
			{ "residingCity", new Integer(Types.VARCHAR) },
			{ "address", new Integer(Types.VARCHAR) },
			{ "postalCode", new Integer(Types.VARCHAR) },
			{ "homePhone", new Integer(Types.VARCHAR) },
			{ "mobile", new Integer(Types.VARCHAR) },
			{ "emailAddress", new Integer(Types.VARCHAR) },
			{ "education", new Integer(Types.VARCHAR) },
			{ "profession", new Integer(Types.VARCHAR) },
			{ "currency", new Integer(Types.VARCHAR) },
			{ "annualIncome", new Integer(Types.VARCHAR) },
			{ "hobbies", new Integer(Types.VARCHAR) },
			{ "aboutMe", new Integer(Types.VARCHAR) },
			{ "familyValue", new Integer(Types.VARCHAR) },
			{ "familyType", new Integer(Types.VARCHAR) },
			{ "familyStatus", new Integer(Types.VARCHAR) },
			{ "securityNo1", new Integer(Types.VARCHAR) },
			{ "securityNo2", new Integer(Types.VARCHAR) },
			{ "photoSecurityCode", new Integer(Types.VARCHAR) },
			{ "lastLoggedIn", new Integer(Types.TIMESTAMP) },
			{ "status", new Integer(Types.INTEGER) },
			{ "age", new Integer(Types.INTEGER) },
			{ "scheme", new Integer(Types.INTEGER) },
			{ "horoscope", new Integer(Types.BOOLEAN) },
			{ "addedBy", new Integer(Types.BIGINT) },
			{ "dateAdded", new Integer(Types.TIMESTAMP) },
			{ "dateModified", new Integer(Types.TIMESTAMP) },
			{ "modifiedBy", new Integer(Types.BIGINT) },
			{ "modifiedCount", new Integer(Types.INTEGER) },
			{ "companyId", new Integer(Types.BIGINT) },
			{ "groupId", new Integer(Types.BIGINT) }
		};
	public static final String TABLE_SQL_CREATE = "create table kalyan_profile (profileId LONG not null primary key IDENTITY,profileCode VARCHAR(75) null,createdForMy VARCHAR(75) null,profileName VARCHAR(75) null,gender BOOLEAN,birthDateWithTime DATE null,rasi VARCHAR(75) null,star VARCHAR(75) null,dosam VARCHAR(75) null,religion VARCHAR(75) null,caste VARCHAR(75) null,subcaste VARCHAR(75) null,height VARCHAR(75) null,weight VARCHAR(75) null,complexion VARCHAR(75) null,motherTongue VARCHAR(75) null,languageKnown VARCHAR(75) null,maritalStatus VARCHAR(75) null,children INTEGER,residingCountry VARCHAR(75) null,residingState VARCHAR(75) null,residingCity VARCHAR(75) null,address VARCHAR(75) null,postalCode VARCHAR(75) null,homePhone VARCHAR(75) null,mobile VARCHAR(75) null,emailAddress VARCHAR(75) null,education VARCHAR(75) null,profession VARCHAR(75) null,currency VARCHAR(75) null,annualIncome VARCHAR(75) null,hobbies VARCHAR(75) null,aboutMe VARCHAR(75) null,familyValue VARCHAR(75) null,familyType VARCHAR(75) null,familyStatus VARCHAR(75) null,securityNo1 VARCHAR(75) null,securityNo2 VARCHAR(75) null,photoSecurityCode VARCHAR(75) null,lastLoggedIn DATE null,status INTEGER,age INTEGER,scheme INTEGER,horoscope BOOLEAN,addedBy LONG,dateAdded DATE null,dateModified DATE null,modifiedBy LONG,modifiedCount INTEGER,companyId LONG,groupId LONG)";
	public static final String TABLE_SQL_DROP = "drop table kalyan_profile";
	public static final String ORDER_BY_JPQL = " ORDER BY profile.dateAdded DESC";
	public static final String ORDER_BY_SQL = " ORDER BY kalyan_profile.dateAdded DESC";
	public static final String DATA_SOURCE = "liferayDataSource";
	public static final String SESSION_FACTORY = "liferaySessionFactory";
	public static final String TX_MANAGER = "liferayTransactionManager";
	public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
				"value.object.entity.cache.enabled.com.vijayan.profile.model.Profile"),
			true);
	public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
				"value.object.finder.cache.enabled.com.vijayan.profile.model.Profile"),
			true);

	/**
	 * Converts the soap model instance into a normal model instance.
	 *
	 * @param soapModel the soap model instance to convert
	 * @return the normal model instance
	 */
	public static Profile toModel(ProfileSoap soapModel) {
		Profile model = new ProfileImpl();

		model.setProfileId(soapModel.getProfileId());
		model.setProfileCode(soapModel.getProfileCode());
		model.setCreatedForMy(soapModel.getCreatedForMy());
		model.setProfileName(soapModel.getProfileName());
		model.setGender(soapModel.getGender());
		model.setBirthDateWithTime(soapModel.getBirthDateWithTime());
		model.setRasi(soapModel.getRasi());
		model.setStar(soapModel.getStar());
		model.setDosam(soapModel.getDosam());
		model.setReligion(soapModel.getReligion());
		model.setCaste(soapModel.getCaste());
		model.setSubcaste(soapModel.getSubcaste());
		model.setHeight(soapModel.getHeight());
		model.setWeight(soapModel.getWeight());
		model.setComplexion(soapModel.getComplexion());
		model.setMotherTongue(soapModel.getMotherTongue());
		model.setLanguageKnown(soapModel.getLanguageKnown());
		model.setMaritalStatus(soapModel.getMaritalStatus());
		model.setChildren(soapModel.getChildren());
		model.setResidingCountry(soapModel.getResidingCountry());
		model.setResidingState(soapModel.getResidingState());
		model.setResidingCity(soapModel.getResidingCity());
		model.setAddress(soapModel.getAddress());
		model.setPostalCode(soapModel.getPostalCode());
		model.setHomePhone(soapModel.getHomePhone());
		model.setMobile(soapModel.getMobile());
		model.setEmailAddress(soapModel.getEmailAddress());
		model.setEducation(soapModel.getEducation());
		model.setProfession(soapModel.getProfession());
		model.setCurrency(soapModel.getCurrency());
		model.setAnnualIncome(soapModel.getAnnualIncome());
		model.setHobbies(soapModel.getHobbies());
		model.setAboutMe(soapModel.getAboutMe());
		model.setFamilyValue(soapModel.getFamilyValue());
		model.setFamilyType(soapModel.getFamilyType());
		model.setFamilyStatus(soapModel.getFamilyStatus());
		model.setSecurityNo1(soapModel.getSecurityNo1());
		model.setSecurityNo2(soapModel.getSecurityNo2());
		model.setPhotoSecurityCode(soapModel.getPhotoSecurityCode());
		model.setLastLoggedIn(soapModel.getLastLoggedIn());
		model.setStatus(soapModel.getStatus());
		model.setAge(soapModel.getAge());
		model.setScheme(soapModel.getScheme());
		model.setHoroscope(soapModel.getHoroscope());
		model.setAddedBy(soapModel.getAddedBy());
		model.setDateAdded(soapModel.getDateAdded());
		model.setDateModified(soapModel.getDateModified());
		model.setModifiedBy(soapModel.getModifiedBy());
		model.setModifiedCount(soapModel.getModifiedCount());
		model.setCompanyId(soapModel.getCompanyId());
		model.setGroupId(soapModel.getGroupId());

		return model;
	}

	/**
	 * Converts the soap model instances into normal model instances.
	 *
	 * @param soapModels the soap model instances to convert
	 * @return the normal model instances
	 */
	public static List<Profile> toModels(ProfileSoap[] soapModels) {
		List<Profile> models = new ArrayList<Profile>(soapModels.length);

		for (ProfileSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}

	public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get(
				"lock.expiration.time.com.vijayan.profile.model.Profile"));

	public ProfileModelImpl() {
	}

	public long getPrimaryKey() {
		return _profileId;
	}

	public void setPrimaryKey(long pk) {
		setProfileId(pk);
	}

	public Serializable getPrimaryKeyObj() {
		return new Long(_profileId);
	}

	public long getProfileId() {
		return _profileId;
	}

	public void setProfileId(long profileId) {
		_profileId = profileId;
	}

	public String getProfileCode() {
		if (_profileCode == null) {
			return StringPool.BLANK;
		}
		else {
			return _profileCode;
		}
	}

	public void setProfileCode(String profileCode) {
		_profileCode = profileCode;

		if (_originalProfileCode == null) {
			_originalProfileCode = profileCode;
		}
	}

	public String getOriginalProfileCode() {
		return GetterUtil.getString(_originalProfileCode);
	}

	public String getCreatedForMy() {
		if (_createdForMy == null) {
			return StringPool.BLANK;
		}
		else {
			return _createdForMy;
		}
	}

	public void setCreatedForMy(String createdForMy) {
		_createdForMy = createdForMy;
	}

	public String getProfileName() {
		if (_profileName == null) {
			return StringPool.BLANK;
		}
		else {
			return _profileName;
		}
	}

	public void setProfileName(String profileName) {
		_profileName = profileName;
	}

	public boolean getGender() {
		return _gender;
	}

	public boolean isGender() {
		return _gender;
	}

	public void setGender(boolean gender) {
		_gender = gender;
	}

	public Date getBirthDateWithTime() {
		return _birthDateWithTime;
	}

	public void setBirthDateWithTime(Date birthDateWithTime) {
		_birthDateWithTime = birthDateWithTime;
	}

	public String getRasi() {
		if (_rasi == null) {
			return StringPool.BLANK;
		}
		else {
			return _rasi;
		}
	}

	public void setRasi(String rasi) {
		_rasi = rasi;
	}

	public String getStar() {
		if (_star == null) {
			return StringPool.BLANK;
		}
		else {
			return _star;
		}
	}

	public void setStar(String star) {
		_star = star;
	}

	public String getDosam() {
		if (_dosam == null) {
			return StringPool.BLANK;
		}
		else {
			return _dosam;
		}
	}

	public void setDosam(String dosam) {
		_dosam = dosam;
	}

	public String getReligion() {
		if (_religion == null) {
			return StringPool.BLANK;
		}
		else {
			return _religion;
		}
	}

	public void setReligion(String religion) {
		_religion = religion;
	}

	public String getCaste() {
		if (_caste == null) {
			return StringPool.BLANK;
		}
		else {
			return _caste;
		}
	}

	public void setCaste(String caste) {
		_caste = caste;
	}

	public String getSubcaste() {
		if (_subcaste == null) {
			return StringPool.BLANK;
		}
		else {
			return _subcaste;
		}
	}

	public void setSubcaste(String subcaste) {
		_subcaste = subcaste;
	}

	public String getHeight() {
		if (_height == null) {
			return StringPool.BLANK;
		}
		else {
			return _height;
		}
	}

	public void setHeight(String height) {
		_height = height;
	}

	public String getWeight() {
		if (_weight == null) {
			return StringPool.BLANK;
		}
		else {
			return _weight;
		}
	}

	public void setWeight(String weight) {
		_weight = weight;
	}

	public String getComplexion() {
		if (_complexion == null) {
			return StringPool.BLANK;
		}
		else {
			return _complexion;
		}
	}

	public void setComplexion(String complexion) {
		_complexion = complexion;
	}

	public String getMotherTongue() {
		if (_motherTongue == null) {
			return StringPool.BLANK;
		}
		else {
			return _motherTongue;
		}
	}

	public void setMotherTongue(String motherTongue) {
		_motherTongue = motherTongue;
	}

	public String getLanguageKnown() {
		if (_languageKnown == null) {
			return StringPool.BLANK;
		}
		else {
			return _languageKnown;
		}
	}

	public void setLanguageKnown(String languageKnown) {
		_languageKnown = languageKnown;
	}

	public String getMaritalStatus() {
		if (_maritalStatus == null) {
			return StringPool.BLANK;
		}
		else {
			return _maritalStatus;
		}
	}

	public void setMaritalStatus(String maritalStatus) {
		_maritalStatus = maritalStatus;
	}

	public int getChildren() {
		return _children;
	}

	public void setChildren(int children) {
		_children = children;
	}

	public String getResidingCountry() {
		if (_residingCountry == null) {
			return StringPool.BLANK;
		}
		else {
			return _residingCountry;
		}
	}

	public void setResidingCountry(String residingCountry) {
		_residingCountry = residingCountry;
	}

	public String getResidingState() {
		if (_residingState == null) {
			return StringPool.BLANK;
		}
		else {
			return _residingState;
		}
	}

	public void setResidingState(String residingState) {
		_residingState = residingState;
	}

	public String getResidingCity() {
		if (_residingCity == null) {
			return StringPool.BLANK;
		}
		else {
			return _residingCity;
		}
	}

	public void setResidingCity(String residingCity) {
		_residingCity = residingCity;
	}

	public String getAddress() {
		if (_address == null) {
			return StringPool.BLANK;
		}
		else {
			return _address;
		}
	}

	public void setAddress(String address) {
		_address = address;
	}

	public String getPostalCode() {
		if (_postalCode == null) {
			return StringPool.BLANK;
		}
		else {
			return _postalCode;
		}
	}

	public void setPostalCode(String postalCode) {
		_postalCode = postalCode;
	}

	public String getHomePhone() {
		if (_homePhone == null) {
			return StringPool.BLANK;
		}
		else {
			return _homePhone;
		}
	}

	public void setHomePhone(String homePhone) {
		_homePhone = homePhone;
	}

	public String getMobile() {
		if (_mobile == null) {
			return StringPool.BLANK;
		}
		else {
			return _mobile;
		}
	}

	public void setMobile(String mobile) {
		_mobile = mobile;
	}

	public String getEmailAddress() {
		if (_emailAddress == null) {
			return StringPool.BLANK;
		}
		else {
			return _emailAddress;
		}
	}

	public void setEmailAddress(String emailAddress) {
		_emailAddress = emailAddress;
	}

	public String getEducation() {
		if (_education == null) {
			return StringPool.BLANK;
		}
		else {
			return _education;
		}
	}

	public void setEducation(String education) {
		_education = education;
	}

	public String getProfession() {
		if (_profession == null) {
			return StringPool.BLANK;
		}
		else {
			return _profession;
		}
	}

	public void setProfession(String profession) {
		_profession = profession;
	}

	public String getCurrency() {
		if (_currency == null) {
			return StringPool.BLANK;
		}
		else {
			return _currency;
		}
	}

	public void setCurrency(String currency) {
		_currency = currency;
	}

	public String getAnnualIncome() {
		if (_annualIncome == null) {
			return StringPool.BLANK;
		}
		else {
			return _annualIncome;
		}
	}

	public void setAnnualIncome(String annualIncome) {
		_annualIncome = annualIncome;
	}

	public String getHobbies() {
		if (_hobbies == null) {
			return StringPool.BLANK;
		}
		else {
			return _hobbies;
		}
	}

	public void setHobbies(String hobbies) {
		_hobbies = hobbies;
	}

	public String getAboutMe() {
		if (_aboutMe == null) {
			return StringPool.BLANK;
		}
		else {
			return _aboutMe;
		}
	}

	public void setAboutMe(String aboutMe) {
		_aboutMe = aboutMe;
	}

	public String getFamilyValue() {
		if (_familyValue == null) {
			return StringPool.BLANK;
		}
		else {
			return _familyValue;
		}
	}

	public void setFamilyValue(String familyValue) {
		_familyValue = familyValue;
	}

	public String getFamilyType() {
		if (_familyType == null) {
			return StringPool.BLANK;
		}
		else {
			return _familyType;
		}
	}

	public void setFamilyType(String familyType) {
		_familyType = familyType;
	}

	public String getFamilyStatus() {
		if (_familyStatus == null) {
			return StringPool.BLANK;
		}
		else {
			return _familyStatus;
		}
	}

	public void setFamilyStatus(String familyStatus) {
		_familyStatus = familyStatus;
	}

	public String getSecurityNo1() {
		if (_securityNo1 == null) {
			return StringPool.BLANK;
		}
		else {
			return _securityNo1;
		}
	}

	public void setSecurityNo1(String securityNo1) {
		_securityNo1 = securityNo1;
	}

	public String getSecurityNo2() {
		if (_securityNo2 == null) {
			return StringPool.BLANK;
		}
		else {
			return _securityNo2;
		}
	}

	public void setSecurityNo2(String securityNo2) {
		_securityNo2 = securityNo2;
	}

	public String getPhotoSecurityCode() {
		if (_photoSecurityCode == null) {
			return StringPool.BLANK;
		}
		else {
			return _photoSecurityCode;
		}
	}

	public void setPhotoSecurityCode(String photoSecurityCode) {
		_photoSecurityCode = photoSecurityCode;
	}

	public Date getLastLoggedIn() {
		return _lastLoggedIn;
	}

	public void setLastLoggedIn(Date lastLoggedIn) {
		_lastLoggedIn = lastLoggedIn;
	}

	public int getStatus() {
		return _status;
	}

	public void setStatus(int status) {
		_status = status;
	}

	public int getAge() {
		return _age;
	}

	public void setAge(int age) {
		_age = age;
	}

	public int getScheme() {
		return _scheme;
	}

	public void setScheme(int scheme) {
		_scheme = scheme;
	}

	public boolean getHoroscope() {
		return _horoscope;
	}

	public boolean isHoroscope() {
		return _horoscope;
	}

	public void setHoroscope(boolean horoscope) {
		_horoscope = horoscope;
	}

	public long getAddedBy() {
		return _addedBy;
	}

	public void setAddedBy(long addedBy) {
		_addedBy = addedBy;
	}

	public Date getDateAdded() {
		return _dateAdded;
	}

	public void setDateAdded(Date dateAdded) {
		_dateAdded = dateAdded;
	}

	public Date getDateModified() {
		return _dateModified;
	}

	public void setDateModified(Date dateModified) {
		_dateModified = dateModified;
	}

	public long getModifiedBy() {
		return _modifiedBy;
	}

	public void setModifiedBy(long modifiedBy) {
		_modifiedBy = modifiedBy;
	}

	public int getModifiedCount() {
		return _modifiedCount;
	}

	public void setModifiedCount(int modifiedCount) {
		_modifiedCount = modifiedCount;
	}

	public long getCompanyId() {
		return _companyId;
	}

	public void setCompanyId(long companyId) {
		_companyId = companyId;
	}

	public long getGroupId() {
		return _groupId;
	}

	public void setGroupId(long groupId) {
		_groupId = groupId;
	}

	public Profile toEscapedModel() {
		if (isEscapedModel()) {
			return (Profile)this;
		}
		else {
			return (Profile)Proxy.newProxyInstance(Profile.class.getClassLoader(),
				new Class[] { Profile.class }, new AutoEscapeBeanHandler(this));
		}
	}

	public ExpandoBridge getExpandoBridge() {
		if (_expandoBridge == null) {
			_expandoBridge = ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
					Profile.class.getName(), getPrimaryKey());
		}

		return _expandoBridge;
	}

	public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
		getExpandoBridge().setAttributes(serviceContext);
	}

	public Object clone() {
		ProfileImpl clone = new ProfileImpl();

		clone.setProfileId(getProfileId());
		clone.setProfileCode(getProfileCode());
		clone.setCreatedForMy(getCreatedForMy());
		clone.setProfileName(getProfileName());
		clone.setGender(getGender());
		clone.setBirthDateWithTime(getBirthDateWithTime());
		clone.setRasi(getRasi());
		clone.setStar(getStar());
		clone.setDosam(getDosam());
		clone.setReligion(getReligion());
		clone.setCaste(getCaste());
		clone.setSubcaste(getSubcaste());
		clone.setHeight(getHeight());
		clone.setWeight(getWeight());
		clone.setComplexion(getComplexion());
		clone.setMotherTongue(getMotherTongue());
		clone.setLanguageKnown(getLanguageKnown());
		clone.setMaritalStatus(getMaritalStatus());
		clone.setChildren(getChildren());
		clone.setResidingCountry(getResidingCountry());
		clone.setResidingState(getResidingState());
		clone.setResidingCity(getResidingCity());
		clone.setAddress(getAddress());
		clone.setPostalCode(getPostalCode());
		clone.setHomePhone(getHomePhone());
		clone.setMobile(getMobile());
		clone.setEmailAddress(getEmailAddress());
		clone.setEducation(getEducation());
		clone.setProfession(getProfession());
		clone.setCurrency(getCurrency());
		clone.setAnnualIncome(getAnnualIncome());
		clone.setHobbies(getHobbies());
		clone.setAboutMe(getAboutMe());
		clone.setFamilyValue(getFamilyValue());
		clone.setFamilyType(getFamilyType());
		clone.setFamilyStatus(getFamilyStatus());
		clone.setSecurityNo1(getSecurityNo1());
		clone.setSecurityNo2(getSecurityNo2());
		clone.setPhotoSecurityCode(getPhotoSecurityCode());
		clone.setLastLoggedIn(getLastLoggedIn());
		clone.setStatus(getStatus());
		clone.setAge(getAge());
		clone.setScheme(getScheme());
		clone.setHoroscope(getHoroscope());
		clone.setAddedBy(getAddedBy());
		clone.setDateAdded(getDateAdded());
		clone.setDateModified(getDateModified());
		clone.setModifiedBy(getModifiedBy());
		clone.setModifiedCount(getModifiedCount());
		clone.setCompanyId(getCompanyId());
		clone.setGroupId(getGroupId());

		return clone;
	}

	public int compareTo(Profile profile) {
		int value = 0;

		value = DateUtil.compareTo(getDateAdded(), profile.getDateAdded());

		value = value * -1;

		if (value != 0) {
			return value;
		}

		return 0;
	}

	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}

		Profile profile = null;

		try {
			profile = (Profile)obj;
		}
		catch (ClassCastException cce) {
			return false;
		}

		long pk = profile.getPrimaryKey();

		if (getPrimaryKey() == pk) {
			return true;
		}
		else {
			return false;
		}
	}

	public int hashCode() {
		return (int)getPrimaryKey();
	}

	public String toString() {
		StringBundler sb = new StringBundler(103);

		sb.append("{profileId=");
		sb.append(getProfileId());
		sb.append(", profileCode=");
		sb.append(getProfileCode());
		sb.append(", createdForMy=");
		sb.append(getCreatedForMy());
		sb.append(", profileName=");
		sb.append(getProfileName());
		sb.append(", gender=");
		sb.append(getGender());
		sb.append(", birthDateWithTime=");
		sb.append(getBirthDateWithTime());
		sb.append(", rasi=");
		sb.append(getRasi());
		sb.append(", star=");
		sb.append(getStar());
		sb.append(", dosam=");
		sb.append(getDosam());
		sb.append(", religion=");
		sb.append(getReligion());
		sb.append(", caste=");
		sb.append(getCaste());
		sb.append(", subcaste=");
		sb.append(getSubcaste());
		sb.append(", height=");
		sb.append(getHeight());
		sb.append(", weight=");
		sb.append(getWeight());
		sb.append(", complexion=");
		sb.append(getComplexion());
		sb.append(", motherTongue=");
		sb.append(getMotherTongue());
		sb.append(", languageKnown=");
		sb.append(getLanguageKnown());
		sb.append(", maritalStatus=");
		sb.append(getMaritalStatus());
		sb.append(", children=");
		sb.append(getChildren());
		sb.append(", residingCountry=");
		sb.append(getResidingCountry());
		sb.append(", residingState=");
		sb.append(getResidingState());
		sb.append(", residingCity=");
		sb.append(getResidingCity());
		sb.append(", address=");
		sb.append(getAddress());
		sb.append(", postalCode=");
		sb.append(getPostalCode());
		sb.append(", homePhone=");
		sb.append(getHomePhone());
		sb.append(", mobile=");
		sb.append(getMobile());
		sb.append(", emailAddress=");
		sb.append(getEmailAddress());
		sb.append(", education=");
		sb.append(getEducation());
		sb.append(", profession=");
		sb.append(getProfession());
		sb.append(", currency=");
		sb.append(getCurrency());
		sb.append(", annualIncome=");
		sb.append(getAnnualIncome());
		sb.append(", hobbies=");
		sb.append(getHobbies());
		sb.append(", aboutMe=");
		sb.append(getAboutMe());
		sb.append(", familyValue=");
		sb.append(getFamilyValue());
		sb.append(", familyType=");
		sb.append(getFamilyType());
		sb.append(", familyStatus=");
		sb.append(getFamilyStatus());
		sb.append(", securityNo1=");
		sb.append(getSecurityNo1());
		sb.append(", securityNo2=");
		sb.append(getSecurityNo2());
		sb.append(", photoSecurityCode=");
		sb.append(getPhotoSecurityCode());
		sb.append(", lastLoggedIn=");
		sb.append(getLastLoggedIn());
		sb.append(", status=");
		sb.append(getStatus());
		sb.append(", age=");
		sb.append(getAge());
		sb.append(", scheme=");
		sb.append(getScheme());
		sb.append(", horoscope=");
		sb.append(getHoroscope());
		sb.append(", addedBy=");
		sb.append(getAddedBy());
		sb.append(", dateAdded=");
		sb.append(getDateAdded());
		sb.append(", dateModified=");
		sb.append(getDateModified());
		sb.append(", modifiedBy=");
		sb.append(getModifiedBy());
		sb.append(", modifiedCount=");
		sb.append(getModifiedCount());
		sb.append(", companyId=");
		sb.append(getCompanyId());
		sb.append(", groupId=");
		sb.append(getGroupId());
		sb.append("}");

		return sb.toString();
	}

	public String toXmlString() {
		StringBundler sb = new StringBundler(157);

		sb.append("<model><model-name>");
		sb.append("com.vijayan.profile.model.Profile");
		sb.append("</model-name>");

		sb.append(
			"<column><column-name>profileId</column-name><column-value><![CDATA[");
		sb.append(getProfileId());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>profileCode</column-name><column-value><![CDATA[");
		sb.append(getProfileCode());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>createdForMy</column-name><column-value><![CDATA[");
		sb.append(getCreatedForMy());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>profileName</column-name><column-value><![CDATA[");
		sb.append(getProfileName());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>gender</column-name><column-value><![CDATA[");
		sb.append(getGender());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>birthDateWithTime</column-name><column-value><![CDATA[");
		sb.append(getBirthDateWithTime());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>rasi</column-name><column-value><![CDATA[");
		sb.append(getRasi());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>star</column-name><column-value><![CDATA[");
		sb.append(getStar());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>dosam</column-name><column-value><![CDATA[");
		sb.append(getDosam());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>religion</column-name><column-value><![CDATA[");
		sb.append(getReligion());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>caste</column-name><column-value><![CDATA[");
		sb.append(getCaste());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>subcaste</column-name><column-value><![CDATA[");
		sb.append(getSubcaste());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>height</column-name><column-value><![CDATA[");
		sb.append(getHeight());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>weight</column-name><column-value><![CDATA[");
		sb.append(getWeight());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>complexion</column-name><column-value><![CDATA[");
		sb.append(getComplexion());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>motherTongue</column-name><column-value><![CDATA[");
		sb.append(getMotherTongue());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>languageKnown</column-name><column-value><![CDATA[");
		sb.append(getLanguageKnown());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>maritalStatus</column-name><column-value><![CDATA[");
		sb.append(getMaritalStatus());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>children</column-name><column-value><![CDATA[");
		sb.append(getChildren());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>residingCountry</column-name><column-value><![CDATA[");
		sb.append(getResidingCountry());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>residingState</column-name><column-value><![CDATA[");
		sb.append(getResidingState());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>residingCity</column-name><column-value><![CDATA[");
		sb.append(getResidingCity());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>address</column-name><column-value><![CDATA[");
		sb.append(getAddress());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>postalCode</column-name><column-value><![CDATA[");
		sb.append(getPostalCode());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>homePhone</column-name><column-value><![CDATA[");
		sb.append(getHomePhone());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>mobile</column-name><column-value><![CDATA[");
		sb.append(getMobile());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>emailAddress</column-name><column-value><![CDATA[");
		sb.append(getEmailAddress());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>education</column-name><column-value><![CDATA[");
		sb.append(getEducation());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>profession</column-name><column-value><![CDATA[");
		sb.append(getProfession());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>currency</column-name><column-value><![CDATA[");
		sb.append(getCurrency());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>annualIncome</column-name><column-value><![CDATA[");
		sb.append(getAnnualIncome());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>hobbies</column-name><column-value><![CDATA[");
		sb.append(getHobbies());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>aboutMe</column-name><column-value><![CDATA[");
		sb.append(getAboutMe());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>familyValue</column-name><column-value><![CDATA[");
		sb.append(getFamilyValue());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>familyType</column-name><column-value><![CDATA[");
		sb.append(getFamilyType());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>familyStatus</column-name><column-value><![CDATA[");
		sb.append(getFamilyStatus());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>securityNo1</column-name><column-value><![CDATA[");
		sb.append(getSecurityNo1());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>securityNo2</column-name><column-value><![CDATA[");
		sb.append(getSecurityNo2());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>photoSecurityCode</column-name><column-value><![CDATA[");
		sb.append(getPhotoSecurityCode());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>lastLoggedIn</column-name><column-value><![CDATA[");
		sb.append(getLastLoggedIn());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>status</column-name><column-value><![CDATA[");
		sb.append(getStatus());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>age</column-name><column-value><![CDATA[");
		sb.append(getAge());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>scheme</column-name><column-value><![CDATA[");
		sb.append(getScheme());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>horoscope</column-name><column-value><![CDATA[");
		sb.append(getHoroscope());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>addedBy</column-name><column-value><![CDATA[");
		sb.append(getAddedBy());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>dateAdded</column-name><column-value><![CDATA[");
		sb.append(getDateAdded());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>dateModified</column-name><column-value><![CDATA[");
		sb.append(getDateModified());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>modifiedBy</column-name><column-value><![CDATA[");
		sb.append(getModifiedBy());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>modifiedCount</column-name><column-value><![CDATA[");
		sb.append(getModifiedCount());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>companyId</column-name><column-value><![CDATA[");
		sb.append(getCompanyId());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>groupId</column-name><column-value><![CDATA[");
		sb.append(getGroupId());
		sb.append("]]></column-value></column>");

		sb.append("</model>");

		return sb.toString();
	}

	private long _profileId;
	private String _profileCode;
	private String _originalProfileCode;
	private String _createdForMy;
	private String _profileName;
	private boolean _gender;
	private Date _birthDateWithTime;
	private String _rasi;
	private String _star;
	private String _dosam;
	private String _religion;
	private String _caste;
	private String _subcaste;
	private String _height;
	private String _weight;
	private String _complexion;
	private String _motherTongue;
	private String _languageKnown;
	private String _maritalStatus;
	private int _children;
	private String _residingCountry;
	private String _residingState;
	private String _residingCity;
	private String _address;
	private String _postalCode;
	private String _homePhone;
	private String _mobile;
	private String _emailAddress;
	private String _education;
	private String _profession;
	private String _currency;
	private String _annualIncome;
	private String _hobbies;
	private String _aboutMe;
	private String _familyValue;
	private String _familyType;
	private String _familyStatus;
	private String _securityNo1;
	private String _securityNo2;
	private String _photoSecurityCode;
	private Date _lastLoggedIn;
	private int _status;
	private int _age;
	private int _scheme;
	private boolean _horoscope;
	private long _addedBy;
	private Date _dateAdded;
	private Date _dateModified;
	private long _modifiedBy;
	private int _modifiedCount;
	private long _companyId;
	private long _groupId;
	private transient ExpandoBridge _expandoBridge;
}